import Request from '@/utils/request';
import { xmlyResData } from "@/type/resType/resType";
import { CATEGORY_ALL } from "@/type/resType/categoryResType";
class CategoryRequest extends Request { //创建派生类(子类)
    //  获取分类导航
    getCategory = () => {
        return this.get<any>({
            url: `/revision/metadata/v2/group/all?includeChannels=true`
        })
    }
    // 获取所有的分类信息列表数据
    getCategoryInfo = () => {
        return this.get<xmlyResData<CATEGORY_ALL>>({
            url: "/revision/category/v2/allCategory",
        })
    }
}
export default new CategoryRequest();